/*
 * @Descripttion: your project
 * @version: 1.0
 * @Author: huxin
 * @Date: 2023-11-01 18:02:57
 * @LastEditTime: 2023-11-01 18:15:47
 */

import { path } from "./path"
import http from "../config/axios"

const api = {
    // 查询音乐是否有权限
    checkMusi(params: (string | number)[], data: (string | number)[]) {
        return http('get', path.checkMusic, params, data)
    },
    // 搜索音乐
    searchMusic(params: (string | number)[], data: (string | number)[]) {
        return http('get', path.searchMusic, params, data)
    },
    // 获取音乐播放地址
    getMusicUrl(params: (string | number)[], data: (string | number)[]) {
        return http('get', path.getMusicUrl, params, data)
    }
}

export default api